package com.ruoyi.supplier.service;

import com.ruoyi.supplier.domain.UndoLog;
import com.ruoyi.supplier.domain.vo.UndoLogVo;
import com.ruoyi.supplier.domain.bo.UndoLogBo;
import com.ruoyi.common.mybatis.core.page.PageQuery;
import com.ruoyi.common.mybatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * AT transaction mode undo tableService接口
 *
 * @author ruoyi
 * @date 2023-09-18
 */
public interface IUndoLogService {

    /**
     * 查询AT transaction mode undo table
     */
    UndoLogVo queryById(Long branchId);

    /**
     * 查询AT transaction mode undo table列表
     */
    TableDataInfo<UndoLogVo> queryPageList(UndoLogBo bo, PageQuery pageQuery);

    /**
     * 查询AT transaction mode undo table列表
     */
    List<UndoLogVo> queryList(UndoLogBo bo);

    /**
     * 修改AT transaction mode undo table
     */
    Boolean insertByBo(UndoLogBo bo);

    /**
     * 修改AT transaction mode undo table
     */
    Boolean updateByBo(UndoLogBo bo);

    /**
     * 校验并批量删除AT transaction mode undo table信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
